#pragma once
#include "audio_input.h"
#include "refc_ptr.h"

namespace krryn{
namespace audio{
	class sound : public input{
	public:
		typedef core::refc_ptr<sound> ptr;

		sound(input::ptr a_File);

		void loop(bool a_Loop);
		float volume();
		void set_volume(float a_Volume);

		virtual sample::ptr next(int a_MilliSeconds);
		virtual void reset();
		virtual bool more();
	private:
		bool m_IsLooping;
		float m_Volume;
		input::ptr m_Input;
	};
}
}
